import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Calendar;


public abstract class Event implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private String ID;
	private String type;
	protected long timestamp;

	public Event(String ID, String type, long timestamp){
		this.ID=ID;
		this.type=type;
		this.timestamp=timestamp;
	}
	public String getType(){
		return type;
	}
	public String getID(){
		return ID;
	}
	public long getTimeStamp(){
		return timestamp;
	}
	protected String getDateStamp(long timestamp){
		Calendar tc = Calendar.getInstance();
		tc.setTimeInMillis(timestamp);
		SimpleDateFormat formater = new SimpleDateFormat("dd.MM.YYYY HH:mm:ss z");
		return formater.format(tc.getTime());
	}
}
